//package com.tinyseed.emcp.api.task;
//
//import com.tinyseed.emcp.api.crawler.service.CrawlerService;
//import com.tinyseed.emcp.api.exception.service.ExceptionInfoService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class ExceptionInfoTask {
//
//    @Autowired
//    private CrawlerService crawlerService;
//
//    @Autowired
//    private ExceptionInfoService exceptionInfoService;
//
//    //3.添加定时任务
//    @Scheduled(cron = "0 0/5 * * * ?")
//    //@Scheduled(fixedRate=5000)
//    private void configureTasks() {
//
////        log.info("======爬虫并插入异常定时任务正在执行========");
//
////        crawlerService.insertExceptionInfoByCrawler();
////        log.info("======结束========");
//
//    }
//
//    //3.添加定时任务
////    @Scheduled(cron = "0 15 0 * * ?")
////    //@Scheduled(fixedRate=5000)
////    private void dayInsert() {
////        log.info("======爬虫并插入每日异常定时任务正在执行========");
////
////        crawlerService.dayInsert();
////        log.info("======结束========");
////
////    }
//
//    //3.添加定时任务
//    @Scheduled(cron = "0 58 23 * * ?")
//    //@Scheduled(fixedRate=5000)
//    private void insertDailyExceptionInfo() {
////        log.info("======插入每日异常统计任务========");
//
////        exceptionInfoService.saveDailyExceptionInfo();
////        log.info("=============结束=============");
//
//    }
//
//
//
//}
